package com.by.common.util;

import java.util.Random;

public class SmsUtils {

	private SmsUtils() {
	}

	public static String generateAliyunMsgCode() {
		int n = 6;
		StringBuilder code = new StringBuilder();
		Random ran = new Random();
		for (int i = 0; i < n; i++) {
			code.append(Integer.valueOf(ran.nextInt(10)).toString());
		}
		return code.toString();
	}

}
